﻿@model CMS.UI.Models.CommentModel
@using Recaptcha.Web.Mvc

<form id="CommentForm" action="@Url.Action("SaveComment", "Website")" method="post" class="commentForm">
    <h3>Leave a Reply</h3>
    <div>
        @Html.LabelFor(m => m.Name)
        @Html.TextBoxFor(m => m.Name)
        <span class="info">(Required)</span>
        @Html.ValidationMessageFor(m => m.Name)
    </div>
    <div>
        @Html.LabelFor(m => m.Email)
        @Html.TextBoxFor(m => m.Email)
        <span class="info">(Required, not published)</span>
        @Html.ValidationMessageFor(m => m.Email)
    </div>
    <div>
        @Html.LabelFor(m => m.Website)
        @Html.TextBoxFor(m => m.Website)
    </div>
    <div>
        @Html.LabelFor(m => m.Message)
        @Html.TextAreaFor(m => m.Message)
    </div>
    <div class="recaptcha">
        @Html.Recaptcha(publicKey: ViewBag.PublicKey as string, theme: Recaptcha.Web.RecaptchaTheme.White)
        <span id="validationSummary" class="validation-summary-errors"></span>
    </div>
    <div class="buttons">
        <input type="hidden" name="sitemapID" value="@ViewBag.SitemapID" />
        <input type="submit" value="submit content" />
    </div>
</form>
<div id="CommentSaved" style="display: none;">
    <h3>Comment Submitted!</h3>
    <p>Your comment has been submitted for moderation!</p>
</div>